<!--
  @author tanghongjun
  @since 2018/10/19 08:59
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: confJscss">
    <title>取消分类</title>
</head>
<body>

<div class="layui-fluid">

    <div class="layui-card">

        <div class="layui-split">&nbsp;</div>

        <form method="post" action="/conf/cancel/category/list.action">
            <div class="layui-form" th:include="conf/cancel/category/_query :: query "></div>
        </form>

        <div class="layui-card-body" id="table_body">
            <div th:replace="conf/cancel/category/_table::table"></div>

            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
<!--                    th:if="${#authPermit.checkPermit('/orderconfig/cancelCategory/list.action')}"-->
                    <div class="layui-btn-group">
                        <button class="layui-btn layui-btn-sm" lay-event="start">启用</button>
                        <button class="layui-btn layui-btn-sm" lay-event="stop">停用</button>
                    </div>
                    <div class="layui-btn-group">
<!--                        th:if="${#authPermit.checkPermit('/orderconfig/cancelCategory/detail.action')}"-->
                        <button lay-event="add" class="layui-btn layui-btn-sm layui-btn-primary">+新增
                        </button>
                    </div>
                </div>
            </script>
        </div>

    </div>

</div>
</body>
</html>
<script type="text/javascript" th:inline="javascript">

    var json = {
        // hasEditSort: [[${#authPermit.checkPermit('/orderconfig/cancelCategory/updateSort.action')}]],
        // hasEditFirstLetter: [[${#authPermit.checkPermit('/orderconfig/cancelCategory/updateFirstLetter.action')}]],
        // hasEdit: [[${#authPermit.checkPermit('/orderconfig/cancelCategory/detail.action')}]],
        hasEditSort: true,
        hasEditFirstLetter: true,
        hasEdit: true,
        items: [[${items}]],
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]]
    };

    layui.config({
        base: "/static/js/module/",
        version: version,
    }).extend({
        oms_conf_cancel_category_list: "conf/cancel/category/zmn.oms.conf.cancel.category.list",
    }).use(['oms_conf_cancel_category_list']);

</script>